package com.rich.broker.service;

import com.rich.broker.vo.BrokerVo;
import com.rich.common.entity.TbBroker;
import com.rich.common.result.ResultData;

import java.util.List;
/**
 *
 * @Author: 张龙飞
 * @Date:  下午 8:07
 **/
public interface BrokerService {

    /**、
     * 获取单条
     * @param id
     * @return
     */
    TbBroker findOneById(Long id);

    /**‘
     * 获取排行榜
     * @param brokerName
     * @return
     */
    List<TbBroker> rankingList(String brokerName);

    ResultData brokerList(BrokerVo brokerVo);

    void delBoker(Integer id);

    void updStatus(Integer id, String status);

    void updBroker(TbBroker tbBroker);

    void addBroker(TbBroker tbBroker);
}
